main/pin: Fix usage of GError
authorColin Walters <walters@verbum.org>
Wed, 18 Mar 2020 02:13:15 +0000 (02:13 +0000)
committerColin Walters <walters@verbum.org>
Wed, 18 Mar 2020 02:15:34 +0000 (02:15 +0000)
commit0b6ac72b7ff4beba18d578d4c3668cc385351026
tree1ee5c9b4b05a9bc3908a94f56d1b05f67c8845f2
parent35c8fd3722fbcccd2855d690b80ccdfc95f5fc55
main/pin: Fix usage of GError

This regressed in https://github.com/ostreedev/ostree/commit/2db79fb398fba2f9ab2e05c517ebccfe1834674b
I noticed this while finally getting the installed tests to run
in FCOS via kola and `ostree admin pin 0` is now aborting because
we were returning TRUE, but no error set.

I don't see a reason to try to continue on if we hit an error;
the original reporter was requesting support for multiple arguments,
but not "ignore invalid requests".
src/ostree/ot-admin-builtin-pin.c